import * as apiService from '@/services/api'

/**
 * 取得数据统计-累计数据概要
 * @param params
 * @returns {Promise<*>}
 */
const trendSummaryApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_SUMMARY,
    params);
};
/**
 * 取得数据统计-基础数据
 * @param params
 * @returns {Promise<*>}
 */
const trendBasicApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_BASIC,
    params);
};

/**
 * 取得数据统计-充值金额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendRechargeApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_RECHARGE_TIME,
    params);
};

/**
 * 取得数据统计-充值人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendRechargeUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_RECHARGE_USER_TIME,
    params);
};

/**
 * 取得数据统计-提现金额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendWithdrawApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_WITHDRAW_TIME,
    params);
};
/**
 * 取得数据统计-提现人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendWithdrawUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_WITHDRAW_USER_TIME,
    params);
};

/**
 * 取得数据统计-实际上分总额分布
 * @param params
 * @returns {Promise<*>}
 */
const trendUpAmountApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_UP_AMOUNT_TIME,
    params);
};
/**
 * 取得数据统计-实际上分人数分布
 * @param params
 * @returns {Promise<*>}
 */
const trendUpUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_UP_USER_TIME,
    params);
};
/**
 * 取得数据统计-新注册用户分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendNewUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_NEW_USER_TIME,
    params);
};
/**
 * 取得数据统计-活跃用户分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendActiveUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_ACTIVE_USER_TIME,
    params);
};
/**
 * 取得数据统计-总投注额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendBettingAmountApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_BETTING_AMOUNT_TIME,
    params);
};
/**
 * 取得数据统计-会员输赢分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendBettingWinApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_BETTING_WIN_TIME,
    params);
};
/**
 * 取得数据统计-有效投注额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendBettingEffectAmountApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_BETTING_EFFECT_AMOUNT_TIME,
    params);
};
/**
 * 取得数据统计-投注人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendBettingUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_BETTING_USER_TIME,
    params);
};
/**
 * 取得数据统计-申请优惠人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendPromoUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_PROMO_USER_TIME,
    params);
};
/**
 * 取得数据统计-优惠总额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendPromoAmountApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_PROMO_TIME,
    params);
};

/**
 * 取得数据统计-游戏盈亏汇总
 * @param params
 * @returns {Promise<*>}
 */
const trendGameProfitBasicApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_GAME,
    params);
};
/**
 * 取得数据统计-游戏盈亏汇总分时分布
 * @param params
 * @returns {Promise<*>}
 */
const trendGameProfitApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_GAME_TIME,
    params);
};


/**
 * 人数统计
 * @param params
 * @returns {Promise<*>}
 */
const userNumCountApi = (params) => {
  return apiService.post(api.OPERATIONAL_USER_NUM_COUNT,
    params);
};

/**
 * 取得实时统计-首存金额分Time分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeTotalFirstRechargeApi = (params) => {
  return apiService.get(api.OPERATIONAL_REAL_TIME_FIRST_RECHANGE_TIME,
    params);
};

/**
 * 取得实时统计-首存人数分Time分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeTotalFirstRechargeUserApi = (params) => {
  return apiService.get(api.OPERATIONAL_REAL_TIME_FIRST_RECHANGE_USER_TIME,
    params);
};
export {
  //数据统计-begin
  trendSummaryApi,
  trendBasicApi,
  trendRechargeApi,
  trendRechargeUserApi,
  trendWithdrawApi,
  trendWithdrawUserApi,
  trendNewUserApi,
  trendUpAmountApi,
  trendUpUserApi,
  trendActiveUserApi,
  trendBettingAmountApi,
  trendBettingWinApi,
  trendBettingEffectAmountApi,
  trendBettingUserApi,
  realTimeTotalFirstRechargeApi,
  realTimeTotalFirstRechargeUserApi,
  trendPromoUserApi,
  trendPromoAmountApi,
  trendGameProfitBasicApi,
  trendGameProfitApi,
  userNumCountApi,//人数统计接口？？
  //数据统计首页接口-end
  //数据统计end

};
